package com.sunday.boot3.user.center.pojo.dto.permissions;

import com.sunday.common.core.enums.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: 权限表 常量类
 * @author: zsy
 * @Create: 2024/09/20 15:13:06
 */
public interface PermissionsConstants {

    String TABLE_NAME = "sunday_permissions";


    @Getter
    @AllArgsConstructor
    enum PermissionCategoryEnum {

        /**
         * 后台管理
         * 10	  后台权限(web访问数据)
         */
        BACKGROUND_PERMISSIONS(10, "后台权限"),

        /**
         * 前台管理
         * 20. 路由权限(route permissions)
         * 21. 页面权限 - 细粒度管控(fine grit permissions)
         */
        ROUTE_PERMISSIONS(20, "路由权限"),
        FINE_GRIT_PERMISSIONS(21, "页面权限"),

        /**
         * 接口管理
         * 30. 接口权限(api 能力权限)
         */
        API_PERMISSIONS(30, "接口权限");

        @EnumValue
        private int code;

        private String desc;

    }


}
